<!-- Content -->
        <div id="content">
            
            <div class="invite_text">

            </div>
            
            <div id="custom_order">
                <div class="slideshow">
                    <?php
//                    System::dump($customImages);
//                    exit;
                    if (isset($customImages)){
                    foreach($customImages as $custImage){
                        $i=isset($i)?$i+1:1;
                        $url = isset($custImage['text2']) ? $custImage['text2'] : '';
                        echo'<a href="'.$url.'" style="display:none"><img data-id="'.$i.'"  src="/content/directory/images/custom/custom/'.substr($custImage['alias'],0,1).'/'.$custImage['alias'].'.jpg" alt=""/></a>';
                    }}
                    ?>
                </div>
                <div class="custom_block_title">
                    <span>CUSTOM ORDER</span>
                </div>

            </div>
            
            <div id="main_blocks">
                <a href="<?=isset($top_left['url'])?$top_left['url']:'' ?>">
                    <div class="main_block main_block_women" style="background: url(<?=isset($top_left['src'])?$top_left['src']:''?>)">
                        <div class="main_block_title"><span><?=isset($top_left['name'])?$top_left['name']:''?></span><?=isset($top_left['text1'])?$top_left['text1']:'' ?></div>
                    </div>
                </a>

                <a href="<?=isset($top_right['url'])?$top_right['url']:'' ?>">
                    <div class="main_block main_block_accessories" style="background: url(<?=isset($top_right['src'])?$top_right['src']:''?>)">
                        <div class="main_block_title"><span><?=isset($top_right['name'])?$top_right['name']:''?></span><?=isset($top_right['text1'])?$top_right['text1']:'' ?></div>
                    </div>
                </a>
                
                <a href="<?=isset($bottom_left['url'])?$bottom_left['url']:'' ?>">
                    <div class="main_block main_block_men" style="background: url(<?=isset($bottom_left['src'])?$bottom_left['src']:''?>)">
                        <div class="main_block_title"><span><?=isset($bottom_left['name'])?$bottom_left['name']:''?></span><?=isset($bottom_left['text1'])?$bottom_left['text1']:'' ?></div>
                    </div>
                </a>
                
                <a href="<?=isset($bottom_right['url'])?$bottom_right['url']:'' ?>">
                    <div class="main_block main_block_kids" style="background: url(<?=isset($bottom_right['src'])?$bottom_right['src']:''?>)">
                        <div class="main_block_title"><span><?=isset($bottom_right['name'])?$bottom_right['name']:''?></span><?=isset($bottom_right['text1'])?$bottom_right['text1']:'' ?></div>
                    </div>
                </a>
                
                
            </div>
                        
            <div class="clear"></div>
            
            <div class="invite_text invite_bottom">

            </div>
        </div>
        <!-- End content -->
        
        <!-- Vote -->
        <div id="bottom_vote">
            <div id="bottom_vote_in">
                <div id="bottom_vote_header">Vote for the next item you want to see or buy on kasarishop</div>

                <div id = "bottom_vote_items">

                    <?php
                    $model = new Model_Manager();
                    if(isset($voteImages)){
                    foreach($voteImages as $voteImg){
                        echo'<div class="vote_item">
                                        <div class="vote_item_header"></div>
                                        
                                        <div class="vote_item_body">
                                            <img data-id="'.$voteImg['id'].'" src="/content/directory/images/vote/vote/'.substr($voteImg['alias'],0,1).'/'.$voteImg['alias'].'.jpg" />
                                        </div>';

                                        if(isset($voteImg['voted']) && $voteImg['voted'] ==1 ){
                                            echo '<div class="vote_result">'.$voteImg['votesQuantity'].' votes</div>';
                                        } 
                                        else{
                                            echo' <div class="vote_result" style="display:none"></div><div class="vote_button">VOTE</div>';
                                        }
                                    echo'
                                        
                            </div>';

                    }}
                    ?>
                    <div class="clear"></div>
                </div>
                <div class="clear"></div>
            </div>
        </div>
        <!-- End vote -->
        <script type="text/javascript">
            $(document).ready(function() {
                $('.slideshow').cycle({
                    fx: 'scrollHorz', // choose your transition type, ex: fade, scrollUp, shuffle, etc...
                    timeout:500,
                    pause: 1
                });
            }); 
        </script>